# from django.urls import re_path
#
# from . import consumers
#
# websocket_urlpatterns = [
#     re_path(r'ws/chat/(?P<group_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
# ]


from django.urls import re_path

from . import consumers

websocket_urlpatterns = [
    re_path(r'ws/chat/(?P<group_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
    re_path(r'ws/chat/push/(?P<username>[0-9a-z]+)/$', consumers.PushConsumer.as_asgi()),
]
